<?php
namespace Home\Model;

use Think\Model;
	class authModel{
		function checkauth($username, $password){
			$where="`username`='".$username."'";
			$auth = M('admin')->where($where)->select();
			if((!empty($auth))&&$auth[0]['password']==$password){
				return $auth;
			}else{
				return false;
			} 
		}
	}
?>